//Stata replication do file for Online Appendix - JEPS Kalmoe & Johnson

use "/Users/nathankalmoe/Dropbox/Research/A Publishing/JEPS - Ideology & Heritability/MN Twins.dta", clear
set more off

*Variable naming note: ...1 = Twin 1, ...2 = Twin 2

*Zygosity
gen mz=zyg
recode mz 1=1 2=0
tab mz zyg, miss

*Age & Sex
gen age1=2008-year(bdate_1)
gen age2=2008-year(bdate_2)
su age1 age2

gen fem1=Qq89_1
recode fem1 1=0 2=1 else=.
tab fem1 Qq89_1, miss
gen fem2=Qq89_2
recode fem2 1=0 2=1 else=.
tab fem2 Qq89_2, miss

gen samesex=0 if mz~=.
recode samesex 0=1 if fem1~=fem2 & fem1~=. & fem2~=.
recode samesex 0=1 if fem1==fem2 & fem1~=. & fem2~=.
tab samesex mz if fem1==fem2 & fem1~=. & fem2~=., miss
tab samesex mz if fem1~=fem2 & fem1~=. & fem2~=., miss

//Wilson-Patterson

*Twin 1 W-P items
gen pray1=Qq19_A_1_1
recode pray1 1=1 2=0 3=-1 else=.
recode pray1 1=.67 if Qq20_A_1_1==2
recode pray1 1=.33 if Qq20_A_1_1==3
recode pray1 -1=-.67 if Qq20_A_1_1==2
recode pray1 -1=-.33 if Qq20_A_1_1==3
tab pray1 Qq19_A_1_1, miss
gen pacif1=Qq19_A_2_1
recode pacif1 1=1 2=0 3=-1 else=.
recode pacif1 1=.67 if Qq20_A_2_1==2
recode pacif1 1=.33 if Qq20_A_2_1==3
recode pacif1 -1=-.67 if Qq20_A_2_1==2
recode pacif1 -1=-.33 if Qq20_A_2_1==3
gen soc1= Qq19_A_3_1
recode soc1 1=1 2=0 3=-1 else=.
recode soc1 1=.67 if Qq20_A_3_1==2
recode soc1 1=.33 if Qq20_A_3_1==3
recode soc1 -1=-.67 if Qq20_A_3_1==2
recode soc1 -1=-.33 if Qq20_A_3_1==3
gen porn1= Qq19_A_4_1
recode porn1 1=1 2=0 3=-1 else=.
recode porn1 1=.67 if Qq20_A_4_1==2
recode porn1 1=.33 if Qq20_A_4_1==3
recode porn1 -1=-.67 if Qq20_A_4_1==2
recode porn1 -1=-.33 if Qq20_A_4_1==3
gen imm1= Qq19_A_5_1
recode imm1 1=1 2=0 3=-1 else=.
recode imm1 1=.67 if Qq20_A_5_1==2
recode imm1 1=.33 if Qq20_A_5_1==3
recode imm1 -1=-.67 if Qq20_A_5_1==2
recode imm1 -1=-.33 if Qq20_A_5_1==3
gen wlib1=Qq19_A_6_1
recode wlib1 1=1 2=0 3=-1 else=.
recode wlib1 1=.67 if Qq20_A_6_1==2
recode wlib1 1=.33 if Qq20_A_6_1==3
recode wlib1 -1=-.67 if Qq20_A_6_1==2
recode wlib1 -1=-.33 if Qq20_A_6_1==3
gen deathpen1=Qq19_A_7_1
recode deathpen1 1=1 2=0 3=-1 else=.
recode deathpen1 1=.67 if Qq20_A_7_1==2
recode deathpen1 1=.33 if Qq20_A_7_1==3
recode deathpen1 -1=-.67 if Qq20_A_7_1==2
recode deathpen1 -1=-.33 if Qq20_A_7_1==3
gen sex1=Qq19_A_8_1
recode sex1 1=1 2=0 3=-1 else=.
recode sex1 1=.67 if Qq20_A_8_1==2
recode sex1 1=.33 if Qq20_A_8_1==3
recode sex1 -1=-.67 if Qq20_A_8_1==2
recode sex1 -1=-.33 if Qq20_A_8_1==3
gen gay1=Qq19_A_9_1
recode gay1 1=1 2=0 3=-1 else=.
recode gay1 1=.67 if Qq20_A_9_1==2
recode gay1 1=.33 if Qq20_A_9_1==3
recode gay1 -1=-.67 if Qq20_A_9_1==2
recode gay1 -1=-.33 if Qq20_A_9_1==3
gen abort1=Qq19_A_10_1
recode abort1 1=1 2=0 3=-1 else=.
recode abort1 1=.67 if Qq20_A_10_1==2
recode abort1 1=.33 if Qq20_A_10_1==3
recode abort1 -1=-.67 if Qq20_A_10_1==2
recode abort1 -1=-.33 if Qq20_A_10_1==3
gen evol1=Qq19_A_11_1
recode evol1 1=1 2=0 3=-1 else=.
recode evol1 1=.67 if Qq20_A_11_1==2
recode evol1 1=.33 if Qq20_A_11_1==3
recode evol1 -1=-.67 if Qq20_A_11_1==2
recode evol1 -1=-.33 if Qq20_A_11_1==3
gen patriot1=Qq19_A_12_1
recode patriot1 1=1 2=0 3=-1 else=.
recode patriot1 1=.67 if Qq20_A_12_1==2
recode patriot1 1=.33 if Qq20_A_12_1==3
recode patriot1 -1=-.67 if Qq20_A_12_1==2
recode patriot1 -1=-.33 if Qq20_A_12_1==3
gen bible1=Qq19_A_13_1
recode bible1 1=1 2=0 3=-1 else=.
recode bible1 1=.67 if Qq20_A_13_1==2
recode bible1 1=.33 if Qq20_A_13_1==3
recode bible1 -1=-.67 if Qq20_A_13_1==2
recode bible1 -1=-.33 if Qq20_A_13_1==3
gen iraq1=Qq19_A_14_1
recode iraq1 1=1 2=0 3=-1 else=.
recode iraq1 1=.67 if Qq20_A_14_1==2
recode iraq1 1=.33 if Qq20_A_14_1==3
recode iraq1 -1=-.67 if Qq20_A_14_1==2
recode iraq1 -1=-.33 if Qq20_A_14_1==3
gen welf1=Qq19_A_15_1
recode welf1 1=1 2=0 3=-1 else=.
recode welf1 1=.67 if Qq20_A_15_1==2
recode welf1 1=.33 if Qq20_A_15_1==3
recode welf1 -1=-.67 if Qq20_A_15_1==2
recode welf1 -1=-.33 if Qq20_A_15_1==3
gen guns1=Qq19_A_16_1
recode guns1 1=1 2=0 3=-1 else=.
recode guns1 1=.67 if Qq20_A_16_1==2
recode guns1 1=.33 if Qq20_A_16_1==3
recode guns1 -1=-.67 if Qq20_A_16_1==2
recode guns1 -1=-.33 if Qq20_A_16_1==3
gen mil1=Qq19_A_17_1
recode mil1 1=1 2=0 3=-1 else=.
recode mil1 1=.67 if Qq20_A_17_1==2
recode mil1 1=.33 if Qq20_A_17_1==3
recode mil1 -1=-.67 if Qq20_A_17_1==2
recode mil1 -1=-.33 if Qq20_A_17_1==3
gen warrant1=Qq19_A_18_1
recode warrant1 1=1 2=0 3=-1 else=.
recode warrant1 1=.67 if Qq20_A_18_1==2
recode warrant1 1=.33 if Qq20_A_18_1==3
recode warrant1 -1=-.67 if Qq20_A_18_1==2
recode warrant1 -1=-.33 if Qq20_A_18_1==3
gen global1=Qq19_A_19_1
recode global1 1=1 2=0 3=-1 else=.
recode global1 1=.67 if Qq20_A_19_1==2
recode global1 1=.33 if Qq20_A_19_1==3
recode global1 -1=-.67 if Qq20_A_19_1==2
recode global1 -1=-.33 if Qq20_A_19_1==3
gen pollute1=Qq19_A_20_1
recode pollute1 1=1 2=0 3=-1 else=.
recode pollute1 1=.67 if Qq20_A_20_1==2
recode pollute1 1=.33 if Qq20_A_20_1==3
recode pollute1 -1=-.67 if Qq20_A_20_1==2
recode pollute1 -1=-.33 if Qq20_A_20_1==3
gen smallgov1=Qq19_A_21_1
recode smallgov1 1=1 2=0 3=-1 else=.
recode smallgov1 1=.67 if Qq20_A_21_1==2
recode smallgov1 1=.33 if Qq20_A_21_1==3
recode smallgov1 -1=-.67 if Qq20_A_21_1==2
recode smallgov1 -1=-.33 if Qq20_A_21_1==3
gen schoolstand1=Qq19_A_22_1
recode schoolstand1 1=1 2=0 3=-1 else=.
recode schoolstand1 1=.67 if Qq20_A_22_1==2
recode schoolstand1 1=.33 if Qq20_A_22_1==3
recode schoolstand1 -1=-.67 if Qq20_A_22_1==2
recode schoolstand1 -1=-.33 if Qq20_A_22_1==3
gen foraid1=Qq19_A_23_1
recode foraid1 1=1 2=0 3=-1 else=.
recode foraid1 1=.67 if Qq20_A_23_1==2
recode foraid1 1=.33 if Qq20_A_23_1==3
recode foraid1 -1=-.67 if Qq20_A_23_1==2
recode foraid1 -1=-.33 if Qq20_A_23_1==3
gen tax1=Qq19_A_24_1
recode tax1 1=1 2=0 3=-1 else=.
recode tax1 1=.67 if Qq20_A_24_1==2
recode tax1 1=.33 if Qq20_A_24_1==3
recode tax1 -1=-.67 if Qq20_A_24_1==2
recode tax1 -1=-.33 if Qq20_A_24_1==3
gen stem1=Qq19_A_25_1
recode stem1 1=1 2=0 3=-1 else=.
recode stem1 1=.67 if Qq20_A_25_1==2
recode stem1 1=.33 if Qq20_A_25_1==3
recode stem1 -1=-.67 if Qq20_A_25_1==2
recode stem1 -1=-.33 if Qq20_A_25_1==3
gen abst1=Qq19_A_26_1
recode abst1 1=1 2=0 3=-1 else=.
recode abst1 1=.67 if Qq20_A_26_1==2
recode abst1 1=.33 if Qq20_A_26_1==3
recode abst1 -1=-.67 if Qq20_A_26_1==2
recode abst1 -1=-.33 if Qq20_A_26_1==3
gen torture1=Qq19_A_27_1
recode torture1 1=1 2=0 3=-1 else=.
recode torture1 1=.67 if Qq20_A_27_1==2
recode torture1 1=.33 if Qq20_A_27_1==3
recode torture1 -1=-.67 if Qq20_A_27_1==2
recode torture1 -1=-.33 if Qq20_A_27_1==3

alpha pacif1 global1 soc1 porn1 wlib1 sex1 gay1 stem1 abort1 evol1 welf1 pollute1 foraid1 imm1 warrant1 mil1 guns1 deathpen1 patriot1 bible1 iraq1 smallgov1 schoolstand1 tax1 abst1 torture1 pray1, gen (wp1alpha)
replace wp1alpha=wp1alpha*-1

gen consist1=abs(wp1alpha)

*Twin 2 W-P items
gen pray2=Qq19_A_1_2
recode pray2 1=1 2=0 3=-1 else=.
recode pray2 1=.67 if Qq20_A_1_2==2
recode pray2 1=.33 if Qq20_A_1_2==3
recode pray2 -1=-.67 if Qq20_A_1_2==2
recode pray2 -1=-.33 if Qq20_A_1_2==3
gen pacif2=Qq19_A_2_2
recode pacif2 1=1 2=0 3=-1 else=.
recode pacif2 1=.67 if Qq20_A_2_2==2
recode pacif2 1=.33 if Qq20_A_2_2==3
recode pacif2 -1=-.67 if Qq20_A_2_2==2
recode pacif2 -1=-.33 if Qq20_A_2_2==3
gen soc2= Qq19_A_3_2
recode soc2 1=1 2=0 3=-1 else=.
recode soc2 1=.67 if Qq20_A_3_2==2
recode soc2 1=.33 if Qq20_A_3_2==3
recode soc2 -1=-.67 if Qq20_A_3_2==2
recode soc2 -1=-.33 if Qq20_A_3_2==3
gen porn2= Qq19_A_4_2
recode porn2 1=1 2=0 3=-1 else=.
recode porn2 1=.67 if Qq20_A_4_2==2
recode porn2 1=.33 if Qq20_A_4_2==3
recode porn2 -1=-.67 if Qq20_A_4_2==2
recode porn2 -1=-.33 if Qq20_A_4_2==3
gen imm2= Qq19_A_5_2
recode imm2 1=1 2=0 3=-1 else=.
recode imm2 1=.67 if Qq20_A_5_2==2
recode imm2 1=.33 if Qq20_A_5_2==3
recode imm2 -1=-.67 if Qq20_A_5_2==2
recode imm2 -1=-.33 if Qq20_A_5_2==3
gen wlib2=Qq19_A_6_2
recode wlib2 1=1 2=0 3=-1 else=.
recode wlib2 1=.67 if Qq20_A_6_2==2
recode wlib2 1=.33 if Qq20_A_6_2==3
recode wlib2 -1=-.67 if Qq20_A_6_2==2
recode wlib2 -1=-.33 if Qq20_A_6_2==3
gen deathpen2=Qq19_A_7_2
recode deathpen2 1=1 2=0 3=-1 else=.
recode deathpen2 1=.67 if Qq20_A_7_2==2
recode deathpen2 1=.33 if Qq20_A_7_2==3
recode deathpen2 -1=-.67 if Qq20_A_7_2==2
recode deathpen2 -1=-.33 if Qq20_A_7_2==3
gen sex2=Qq19_A_8_2
recode sex2 1=1 2=0 3=-1 else=.
recode sex2 1=.67 if Qq20_A_8_2==2
recode sex2 1=.33 if Qq20_A_8_2==3
recode sex2 -1=-.67 if Qq20_A_8_2==2
recode sex2 -1=-.33 if Qq20_A_8_2==3
gen gay2=Qq19_A_9_2
recode gay2 1=1 2=0 3=-1 else=.
recode gay2 1=.67 if Qq20_A_9_2==2
recode gay2 1=.33 if Qq20_A_9_2==3
recode gay2 -1=-.67 if Qq20_A_9_2==2
recode gay2 -1=-.33 if Qq20_A_9_2==3
gen abort2=Qq19_A_10_2
recode abort2 1=1 2=0 3=-1 else=.
recode abort2 1=.67 if Qq20_A_10_2==2
recode abort2 1=.33 if Qq20_A_10_2==3
recode abort2 -1=-.67 if Qq20_A_10_2==2
recode abort2 -1=-.33 if Qq20_A_10_2==3
gen evol2=Qq19_A_11_2
recode evol2 1=1 2=0 3=-1 else=.
recode evol2 1=.67 if Qq20_A_11_2==2
recode evol2 1=.33 if Qq20_A_11_2==3
recode evol2 -1=-.67 if Qq20_A_11_2==2
recode evol2 -1=-.33 if Qq20_A_11_2==3
gen patriot2=Qq19_A_12_2
recode patriot2 1=1 2=0 3=-1 else=.
recode patriot2 1=.67 if Qq20_A_12_2==2
recode patriot2 1=.33 if Qq20_A_12_2==3
recode patriot2 -1=-.67 if Qq20_A_12_2==2
recode patriot2 -1=-.33 if Qq20_A_12_2==3
gen bible2=Qq19_A_13_2
recode bible2 1=1 2=0 3=-1 else=.
recode bible2 1=.67 if Qq20_A_13_2==2
recode bible2 1=.33 if Qq20_A_13_2==3
recode bible2 -1=-.67 if Qq20_A_13_2==2
recode bible2 -1=-.33 if Qq20_A_13_2==3
gen iraq2=Qq19_A_14_2
recode iraq2 1=1 2=0 3=-1 else=.
recode iraq2 1=.67 if Qq20_A_14_2==2
recode iraq2 1=.33 if Qq20_A_14_2==3
recode iraq2 -1=-.67 if Qq20_A_14_2==2
recode iraq2 -1=-.33 if Qq20_A_14_2==3
gen welf2=Qq19_A_15_2
recode welf2 1=1 2=0 3=-1 else=.
recode welf2 1=.67 if Qq20_A_15_2==2
recode welf2 1=.33 if Qq20_A_15_2==3
recode welf2 -1=-.67 if Qq20_A_15_2==2
recode welf2 -1=-.33 if Qq20_A_15_2==3
gen guns2=Qq19_A_16_2
recode guns2 1=1 2=0 3=-1 else=.
recode guns2 1=.67 if Qq20_A_16_2==2
recode guns2 1=.33 if Qq20_A_16_2==3
recode guns2 -1=-.67 if Qq20_A_16_2==2
recode guns2 -1=-.33 if Qq20_A_16_2==3
gen mil2=Qq19_A_17_2
recode mil2 1=1 2=0 3=-1 else=.
recode mil2 1=.67 if Qq20_A_17_2==2
recode mil2 1=.33 if Qq20_A_17_2==3
recode mil2 -1=-.67 if Qq20_A_17_2==2
recode mil2 -1=-.33 if Qq20_A_17_2==3
gen warrant2=Qq19_A_18_2
recode warrant2 1=1 2=0 3=-1 else=.
recode warrant2 1=.67 if Qq20_A_18_2==2
recode warrant2 1=.33 if Qq20_A_18_2==3
recode warrant2 -1=-.67 if Qq20_A_18_2==2
recode warrant2 -1=-.33 if Qq20_A_18_2==3
gen global2=Qq19_A_19_2
recode global2 1=1 2=0 3=-1 else=.
recode global2 1=.67 if Qq20_A_19_2==2
recode global2 1=.33 if Qq20_A_19_2==3
recode global2 -1=-.67 if Qq20_A_19_2==2
recode global2 -1=-.33 if Qq20_A_19_2==3
gen pollute2=Qq19_A_20_2
recode pollute2 1=1 2=0 3=-1 else=.
recode pollute2 1=.67 if Qq20_A_20_2==2
recode pollute2 1=.33 if Qq20_A_20_2==3
recode pollute2 -1=-.67 if Qq20_A_20_2==2
recode pollute2 -1=-.33 if Qq20_A_20_2==3
gen smallgov2=Qq19_A_21_2
recode smallgov2 1=1 2=0 3=-1 else=.
recode smallgov2 1=.67 if Qq20_A_21_2==2
recode smallgov2 1=.33 if Qq20_A_21_2==3
recode smallgov2 -1=-.67 if Qq20_A_21_2==2
recode smallgov2 -1=-.33 if Qq20_A_21_2==3
gen schoolstand2=Qq19_A_22_2
recode schoolstand2 1=1 2=0 3=-1 else=.
recode schoolstand2 1=.67 if Qq20_A_22_2==2
recode schoolstand2 1=.33 if Qq20_A_22_2==3
recode schoolstand2 -1=-.67 if Qq20_A_22_2==2
recode schoolstand2 -1=-.33 if Qq20_A_22_2==3
gen foraid2=Qq19_A_23_2
recode foraid2 1=1 2=0 3=-1 else=.
recode foraid2 1=.67 if Qq20_A_23_2==2
recode foraid2 1=.33 if Qq20_A_23_2==3
recode foraid2 -1=-.67 if Qq20_A_23_2==2
recode foraid2 -1=-.33 if Qq20_A_23_2==3
gen tax2=Qq19_A_24_2
recode tax2 1=1 2=0 3=-1 else=.
recode tax2 1=.67 if Qq20_A_24_2==2
recode tax2 1=.33 if Qq20_A_24_2==3
recode tax2 -1=-.67 if Qq20_A_24_2==2
recode tax2 -1=-.33 if Qq20_A_24_2==3
gen stem2=Qq19_A_25_2
recode stem2 1=1 2=0 3=-1 else=.
recode stem2 1=.67 if Qq20_A_25_2==2
recode stem2 1=.33 if Qq20_A_25_2==3
recode stem2 -1=-.67 if Qq20_A_25_2==2
recode stem2 -1=-.33 if Qq20_A_25_2==3
gen abst2=Qq19_A_26_2
recode abst2 1=1 2=0 3=-1 else=.
recode abst2 1=.67 if Qq20_A_26_2==2
recode abst2 1=.33 if Qq20_A_26_2==3
recode abst2 -1=-.67 if Qq20_A_26_2==2
recode abst2 -1=-.33 if Qq20_A_26_2==3
gen torture2=Qq19_A_27_2
recode torture2 1=1 2=0 3=-1 else=.
recode torture2 1=.67 if Qq20_A_27_2==2
recode torture2 1=.33 if Qq20_A_27_2==3
recode torture2 -1=-.67 if Qq20_A_27_2==2
recode torture2 -1=-.33 if Qq20_A_27_2==3

alpha pacif2 global2 soc2 porn2 wlib2 sex2 gay2 stem2 abort2 evol2 welf2 pollute2 foraid2 imm2 warrant2 mil2 guns2 deathpen2 patriot2 bible2 iraq2 smallgov2 schoolstand2 tax2 abst2 torture2 pray2, gen (wp2alpha)

gen consist2=abs(wp2alpha) 

*uncertain count for W-P items
gen praydk1=Qq19_A_1_1
recode praydk1 2=1 1 3=0 else=.
gen pacifdk1=Qq19_A_2_1
recode pacifdk1 2=1 1 3=0 else=.
gen socdk1= Qq19_A_3_1
recode socdk1 2=1 1 3=0 else=.
gen porndk1= Qq19_A_4_1
recode porndk1 2=1 1 3=0 else=.
gen immdk1= Qq19_A_5_1
recode immdk1 2=1 1 3=0 else=.
gen wlibdk1=Qq19_A_6_1
recode wlibdk1 2=1 1 3=0 else=.
gen deathpendk1=Qq19_A_7_1
recode deathpendk1 2=1 1 3=0 else=.
gen sexdk1=Qq19_A_8_1
recode sexdk1 2=1 1 3=0 else=.
gen gaydk1=Qq19_A_9_1
recode gaydk1 2=1 1 3=0 else=.
gen abortdk1=Qq19_A_10_1
recode abortdk1 2=1 1 3=0 else=.
gen evoldk1=Qq19_A_11_1
recode evoldk1 2=1 1 3=0 else=.
gen patriotdk1=Qq19_A_12_1
recode patriotdk1 2=1 1 3=0 else=.
gen bibledk1=Qq19_A_13_1
recode bibledk1 2=1 1 3=0 else=.
gen iraqdk1=Qq19_A_14_1
recode iraqdk1 2=1 1 3=0 else=.
gen welfdk1=Qq19_A_15_1
recode welfdk1 2=1 1 3=0 else=.
gen gunsdk1=Qq19_A_16_1
recode gunsdk1 2=1 1 3=0 else=.
gen mildk1=Qq19_A_17_1
recode mildk1 2=1 1 3=0 else=.
gen warrantdk1=Qq19_A_18_1
recode warrantdk1 2=1 1 3=0 else=.
gen globaldk1=Qq19_A_19_1
recode globaldk1 2=1 1 3=0 else=.
gen pollutedk1=Qq19_A_20_1
recode pollutedk1 2=1 1 3=0 else=.
gen smallgovdk1=Qq19_A_21_1
recode smallgovdk1 2=1 1 3=0 else=.
gen schoolstanddk1=Qq19_A_22_1
recode schoolstanddk1 2=1 1 3=0 else=.
gen foraiddk1=Qq19_A_23_1
recode foraiddk1 2=1 1 3=0 else=.
gen taxdk1=Qq19_A_24_1
recode taxdk1 2=1 1 3=0 else=.
gen stemdk1=Qq19_A_25_1
recode stemdk1 2=1 1 3=0 else=.
gen abstdk1=Qq19_A_26_1
recode abstdk1 2=1 1 3=0 else=.
gen torturedk1=Qq19_A_27_1
recode torturedk1 2=1 1 3=0 else=.

alpha pacifdk1 globaldk1 socdk1 porndk1 wlibdk1 sexdk1 gaydk1 stemdk1 abortdk1 evoldk1 welfdk1 pollutedk1 foraiddk1 immdk1 warrantdk1 mildk1 gunsdk1 deathpendk1 patriotdk1 bibledk1 iraqdk1 smallgovdk1 schoolstanddk1 taxdk1 abstdk1 torturedk1 praydk1, gen (wpdk1alpha)
su wpdk1alpha

gen praydk2=Qq19_A_1_2
recode praydk2 2=1 1 3=0 else=.
gen pacifdk2=Qq19_A_2_2
recode pacifdk2 2=1 1 3=0 else=.
gen socdk2= Qq19_A_3_2
recode socdk2 2=1 1 3=0 else=.
gen porndk2= Qq19_A_4_2
recode porndk2 2=1 1 3=0 else=.
gen immdk2= Qq19_A_5_2
recode immdk2 2=1 1 3=0 else=.
gen wlibdk2=Qq19_A_6_2
recode wlibdk2 2=1 1 3=0 else=.
gen deathpendk2=Qq19_A_7_2
recode deathpendk2 2=1 1 3=0 else=.
gen sexdk2=Qq19_A_8_2
recode sexdk2 2=1 1 3=0 else=.
gen gaydk2=Qq19_A_9_2
recode gaydk2 2=1 1 3=0 else=.
gen abortdk2=Qq19_A_10_2
recode abortdk2 2=1 1 3=0 else=.
gen evoldk2=Qq19_A_11_2
recode evoldk2 2=1 1 3=0 else=.
gen patriotdk2=Qq19_A_12_2
recode patriotdk2 2=1 1 3=0 else=.
gen bibledk2=Qq19_A_13_2
recode bibledk2 2=1 1 3=0 else=.
gen iraqdk2=Qq19_A_14_2
recode iraqdk2 2=1 1 3=0 else=.
gen welfdk2=Qq19_A_15_2
recode welfdk2 2=1 1 3=0 else=.
gen gunsdk2=Qq19_A_16_2
recode gunsdk2 2=1 1 3=0 else=.
gen mildk2=Qq19_A_17_2
recode mildk2 2=1 1 3=0 else=.
gen warrantdk2=Qq19_A_18_2
recode warrantdk2 2=1 1 3=0 else=.
gen globaldk2=Qq19_A_19_2
recode globaldk2 2=1 1 3=0 else=.
gen pollutedk2=Qq19_A_20_2
recode pollutedk2 2=1 1 3=0 else=.
gen smallgovdk2=Qq19_A_21_2
recode smallgovdk2 2=1 1 3=0 else=.
gen schoolstanddk2=Qq19_A_22_2
recode schoolstanddk2 2=1 1 3=0 else=.
gen foraiddk2=Qq19_A_23_2
recode foraiddk2 2=1 1 3=0 else=.
gen taxdk2=Qq19_A_24_2
recode taxdk2 2=1 1 3=0 else=.
gen stemdk2=Qq19_A_25_2
recode stemdk2 2=1 1 3=0 else=.
gen abstdk2=Qq19_A_26_2
recode abstdk2 2=1 1 3=0 else=.
gen torturedk2=Qq19_A_27_2
recode torturedk2 2=1 1 3=0 else=.

alpha pacifdk2 globaldk2 socdk2 porndk2 wlibdk2 sexdk2 gaydk2 stemdk2 abortdk2 evoldk2 welfdk2 pollutedk2 foraiddk2 immdk2 warrantdk2 mildk2 gunsdk2 deathpendk2 patriotdk2 bibledk2 iraqdk2 smallgovdk2 schoolstanddk2 taxdk2 abstdk2 torturedk2 praydk2, gen (wpdk2alpha)
su wpdk2alpha

*Ideology ID
gen iid1=Qq49_1
recode iid1  1=-1 2=-.67 3=-.33 4=0 5=.33 6=.67 7=1 else=.
tab iid1 Qq49_1, miss
gen iid2=Qq49_2
recode iid2 1=-1 2=-.67 3=-.33 4=0 5=.33 6=.67 7=1 else=.
tab iid2 Qq49_2, miss

*Knowledge
gen constit1=Qq52_1
recode constit1 3=1 1 2 4=0 else=.
tab constit1 Qq52_1, miss
gen constit2=Qq52_2
recode constit2 3=1 1 2 4=0 else=.
tab constit2 Qq52_2, miss

gen nom1=Qq53_1
recode nom1 1=1 2 3 4=0 else=.
tab nom1 Qq53_1, miss
gen nom2=Qq53_2
recode nom2 1=1 2 3 4=0 else=.
tab nom2 Qq53_2, miss

gen conserv1=Qq54_1
recode conserv1 2=1 1 3=0 else=.
tab conserv1 Qq54_1, miss
gen conserv2=Qq54_2
recode conserv2 2=1 1 3=0 else=.
tab conserv2 Qq54_2, miss

gen override1=Qq55_1
recode override1 1 3 4=0 2=1 else=.
tab override1 Qq55_1, miss
gen override2=Qq55_2
recode override2 1 3 4=0 2=1 else=.
tab override2 Qq55_2, miss

gen congduty1=Qq56_1
recode congduty1 1=1 2 3 4=0 else=.
tab congduty1 Qq56_1, miss
gen congduty2=Qq56_2
recode congduty2 1=1 2 3 4=0 else=.
tab congduty2 Qq56_2, miss

gen know1=(constit1+nom1+conserv1+override1+congduty1)/5
gen know2=(constit2+nom2+conserv2+override2+congduty2)/5
su know1 know2 if mz~=. & samesex==1
tab know1 if mz~=. & samesex==1
tab know2 if mz~=. & samesex==1
alpha constit1 nom1 conserv1 override1 congduty1 if mz~=. & samesex==1, item
alpha constit2 nom2 conserv2 override2 congduty2 if mz~=. & samesex==1, item

*5 Qs right
gen knowtop1=know1
recode knowtop1 1=1 0/.99=0 else=.
tab knowtop1 know1, miss
gen knowtop2=know2
recode knowtop2 1=1 0/.99=0 else=.
tab knowtop2 know2, miss

tab knowtop1 knowtop2 if mz~=. & samesex==1, cell

gen knowtopboth=knowtop1 if knowtop1~=. & knowtop2~=.
recode knowtopboth 0=1 if knowtop2==1

gen knowtopone=0 if knowtop1~=. & knowtop2~=.
recode knowtopone 0=1 if (knowtop2==1 & knowtop1==0)|(knowtop2==0 & knowtop1==1)

gen knowtopnone=0 if knowtop1~=. & knowtop2~=.
recode knowtopnone 0=1 if knowtop1==0 & knowtop2==0

*4+ Qs right
gen know1_45=know1
recode know1_45 .8 1=1 0/.79=0
tab know1_45 know1, miss
gen know2_45=know2
recode know2_45 .8 1=1 0/.79=0
tab know2_45 know2, miss

gen knowtop45both=0 if know1_45~=. & know2_45~=.
recode knowtop45both 0=1 if know1_45==1 & know2_45==1

*Political Interest
gen interest1=Qq42_1
recode interest1 1=1 2=.67 3=.33 4=0 else=.
tab interest1 Qq42_1, miss
gen interest2=Qq42_2
recode interest2 1=1 2=.67 3=.33 4=0 else=.
tab interest2 Qq42_2, miss

tab interest1 interest2, miss

gen inttop1=interest1
recode inttop1 0 .33 .67=0 1=1 else=.
tab inttop1 interest1, miss
gen inttop2=interest2
recode inttop2 0 .33 .67=0 1=1 else=.
tab inttop2 interest2, miss

tab inttop1 inttop2

*Education
gen colgrad1=Qq90_1
recode colgrad1 1 2 3 4=0 5 6=1 else=.
tab colgrad1 Qq90_1, miss
gen colgrad2=Qq90_2
recode colgrad2 1 2 3 4=0 5 6=1 else=.
tab colgrad2 Qq90_2, miss

tab colgrad1 colgrad2


***JEPS ANALYSIS***

*MAIN TEXT*

*Methods Section

*number of same-sex twin pairs by zygosity
tab mz if samesex==1

*sample demographics
tab age1 if samesex==1
tab fem1 if samesex==1
tab colgrad1 if samesex==1
tab colgrad2 if samesex==1

*Measures Section

*Descriptive stats among same-sex pairs with know zygosity, in which both twins have knowledge scores
su wp1alpha wp2alpha iid1 iid2 consist1 consist2 knowtop1 knowtop2 if samesex==1 & mz~=. & knowtop1~=. & knowtop2~=.

alpha pacif1 global1 soc1 porn1 wlib1 sex1 gay1 stem1 abort1 evol1 welf1 pollute1 foraid1 imm1 warrant1 mil1 guns1 deathpen1 patriot1 bible1 iraq1 smallgov1 schoolstand1 tax1 abst1 torture1 pray1 if samesex==1 & mz~=. & knowtop1~=.
alpha pacif2 global2 soc2 porn2 wlib2 sex2 gay2 stem2 abort2 evol2 welf2 pollute2 foraid2 imm2 warrant2 mil2 guns2 deathpen2 patriot2 bible2 iraq2 smallgov2 schoolstand2 tax2 abst2 torture2 pray2 if samesex==1 & mz~=. & knowtop1~=.

alpha constit1 nom1 conserv1 override1 congduty1 if mz~=. & samesex==1, item
alpha constit2 nom2 conserv2 override2 congduty2 if mz~=. & samesex==1, item

tab knowtop1 knowtop2 if mz~=. & samesex==1, cell
tab knowtop45both if mz~=. & samesex==1

*Uncertain responses to W-P items by knowledge (footnote)
su wpdk1alpha if knowtop1==0 & mz~=. & samesex==1
su wpdk1alpha if knowtop1==1 & mz~=. & samesex==1
reg wpdk1alpha knowtop1 if mz~=. & samesex==1

su wpdk2alpha if knowtop2==0 & mz~=. & samesex==1
su wpdk2alpha if knowtop2==1 & mz~=. & samesex==1
reg wpdk2alpha knowtop2 if mz~=. & samesex==1

*Heritability of knowledge = 2*(MZ-DZ)
polychoric knowtop1 knowtop2 if mz==1 & samesex==1 
polychoric knowtop1 knowtop2 if mz==0 & samesex==1
*48% heritable

*Knowledge & W-P distributions
twoway (fpfit knowtop1 wp1alpha if mz~=. & samesex==1), ytitle(Proportion with Top Knowledge - Twin 1) ylabel(0(.2)1) xtitle(W-P Index - Twin 1) scheme(s1mono)


*ONLINE APPENDIX*

*Table A1
*Descriptive stats among same-sex pairs with know zygosity, by twin pair knowledge scores
su wp1alpha wp2alpha iid1 iid2 consist1 consist2 if samesex==1 & mz~=. & knowtop1==1 & knowtop2==1
su wp1alpha wp2alpha iid1 iid2 consist1 consist2 if samesex==1 & mz~=. & ((knowtop1==1 & knowtop2==0)|(knowtop1==0 & knowtop2==1))
su wp1alpha wp2alpha iid1 iid2 consist1 consist2 if samesex==1 & mz~=. & knowtop1==0 & knowtop2==0

*Table A3

*W-P Index
*full sample
tab mz if wp1alpha~=. & knowtop1~=. & knowtop2~=. & samesex==1
polychoric wp1alpha wp2alpha if mz==1 & knowtop1~=. & knowtop2~=. & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*58% heritable

*Both High (121 pairs - 21%)
polychoric wp1alpha wp2alpha if mz==1 & knowtop1==1 & knowtop2==1 & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*80% heritable

*Only One High (184 pairs - 32%)
polychoric wp1alpha wp2alpha if mz==1 & ((knowtop1==1 & knowtop2==0)|(knowtop1==0 & knowtop2==1)) & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & ((knowtop1==1 & knowtop2==0)|(knowtop1==0 & knowtop2==1)) & samesex==1
*52% heritable

*Neither High ( pairs - 47%)
polychoric wp1alpha wp2alpha if mz==1 & knowtop1==0 & knowtop2==0 & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & knowtop1==0 & knowtop2==0 & samesex==1
*24% heritable

*See Item Average Below

*Full sample among those with knowledge scores
polychoric iid1 iid2 if mz==1 & knowtop1~=. & knowtop2~=. & samesex==1
polychoric iid1 iid2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*59% heritable

*Both High (122 pairs - 21%)
polychoric iid1 iid2 if mz==1 & knowtop1==1 & knowtop2==1 & samesex==1
polychoric iid1 iid2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*49% heritable

*Only one not high (184 pairs - 32%)
polychoric iid1 iid2 if mz==1 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric iid1 iid2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*61% heritable

*Both Not High (271 pairs - 47%)
polychoric iid1 iid2 if mz==1 & knowtop1<1 & knowtop2<1 & samesex==1
polychoric iid1 iid2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*40% heritable

*By Knowledge (total 576 pairs)
*Among those with knowledge scores
polychoric consist1 consist2 if mz==1 & knowtop1~=. & knowtop2~=. & samesex==1
polychoric consist1 consist2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*31% heritable

*Both High (117 pairs - 21%)
polychoric consist1 consist2 if mz==1 & knowtop1==1 & knowtop2==1 & samesex==1
polychoric consist1 consist2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*36% heritable

*Only one not high (179 pairs - 32%)
polychoric consist1 consist2 if mz==1 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric consist1 consist2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*38% heritable

*Both Not High (256 pairs - 47%)
polychoric consist1 consist2 if mz==1 & knowtop1<1 & knowtop2<1 & samesex==1
polychoric consist1 consist2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*22% heritable

*Median knowledge groupings
*both 4+
tab mz if wp1alpha~=. & (know1_45==1 & know2_45==1) & samesex==1
polychoric wp1alpha wp2alpha if mz==1 & (know1_45==1 & know2_45==1)  & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & (know1_45==1 & know2_45==1)  & samesex==1
*73% heritable

*at least one under 4
tab mz if wp1alpha~=. & (know1_45<1|know2_45<1) & samesex==1
polychoric wp1alpha wp2alpha if mz==1 & (know1_45<1|know2_45<1) & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & (know1_45<1|know2_45<1) & samesex==1
*38% heritable: .54 vs .35

*See Item Avg Below

*both 4+
polychoric iid1 iid2 if mz==1 & (know1_45==1 & know2_45==1)  & samesex==1
polychoric iid1 iid2 if mz==0 & (know1_45==1 & know2_45==1)  & samesex==1
*61% heritable

*at least one under 4
polychoric iid1 iid2 if mz==1 & (know1_45<1|know2_45<1) & samesex==1
polychoric iid1 iid2 if mz==0 & (know1_45<1|know2_45<1) & samesex==1
*47% heritable

*both 4+
polychoric consist1 consist2 if mz==1 & (know1_45==1 & know2_45==1)  & samesex==1
polychoric consist1 consist2 if mz==0 & (know1_45==1 & know2_45==1)  & samesex==1
*33% heritable

*at least one under 4
polychoric consist1 consist2 if mz==1 & (know1_45<1|know2_45<1) & samesex==1
polychoric consist1 consist2 if mz==0 & (know1_45<1|know2_45<1) & samesex==1
*26% heritable


*Table A4 Political Interest stratification

*3-category Interest
tab inttop1 inttop2 if mz~=. & samesex==1, cell
polychoric wp1alpha wp2alpha if mz==1 & inttop1==1 & inttop2==1 & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & inttop1==1 & inttop2==1 & samesex==1
*heritable 86%, 13% of pairs
polychoric wp1alpha wp2alpha if mz==1 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
*heritable 41%, 28% of pairs
polychoric wp1alpha wp2alpha if mz==1 & inttop1==0 & inttop2==0 & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & inttop1==0 & inttop2==0 & samesex==1
*heritable 36%, 60%

tab inttop1 inttop2 if mz~=. & samesex==1, cell
polychoric iid1 iid2 if mz==1 & inttop1==1 & inttop2==1 & samesex==1
polychoric iid1 iid2 if mz==0 & inttop1==1 & inttop2==1 & samesex==1
*79% heritable
polychoric iid1 iid2 if mz==1 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
polychoric iid1 iid2 if mz==0 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
*84% heritable 
polychoric iid1 iid2 if mz==1 & inttop1==0 & inttop2==0 & samesex==1
polychoric iid1 iid2 if mz==0 & inttop1==0 & inttop2==0 & samesex==1
*heritable 

tab inttop1 inttop2 if mz~=. & samesex==1, cell
polychoric consist1 consist2 if mz==1 & inttop1==1 & inttop2==1 & samesex==1
polychoric consist1 consist2 if mz==0 & inttop1==1 & inttop2==1 & samesex==1
*65% heritable 
polychoric consist1 consist2 if mz==1 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
polychoric consist1 consist2 if mz==0 & ((inttop1==1 & inttop2==0)|(inttop1==0 & inttop2==1)) & samesex==1
*20% heritable 
polychoric consist1 consist2 if mz==1 & inttop1==0 & inttop2==0 & samesex==1
polychoric consist1 consist2 if mz==0 & inttop1==0 & inttop2==0 & samesex==1
*12% heritable 

*Median Interest
polychoric wp1alpha wp2alpha if mz==1 & (inttop1==1|inttop2==1) & samesex==1
polychoric wp1alpha wp2alpha if mz==0 & (inttop1==1|inttop2==1) & samesex==1
*heritable 75%

polychoric iid1 iid2 if mz==1 & (inttop1==1|inttop2==1) & samesex==1
polychoric iid1 iid2 if mz==0 & (inttop1==1|inttop2==1) & samesex==1
*heritable 88%

polychoric consist1 consist2 if mz==1 & (inttop1==1|inttop2==1) & samesex==1
polychoric consist1 consist2 if mz==0 & (inttop1==1|inttop2==1) & samesex==1
*heritable 57%


*Table A5
*INDIVIDUAL WP ITEMS - ALL 
polychoric pacif1 pacif2 if mz==1 & knowtop1~=. & knowtop2~=. & samesex==1
polychoric pacif1 pacif2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric global1 global2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric soc1 soc2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric porn1 porn2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric wlib1 wlib2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric sex1 sex2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric gay1 gay2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric welf1 welf2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric stem1 stem2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric abort1 abort2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric evol1 evol2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric foraid1 foraid2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric imm1 imm2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric warrant1 warrant2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric guns1 guns2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric patriot1 patriot2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric bible1 bible2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric tax1 tax2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric abst1 abst2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric torture1 torture2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric pray1 pray2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric pollute1 pollute2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric mil1 mil2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric iraq1 iraq2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1~=. & knowtop2~=. & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & knowtop1~=. & knowtop2~=. & samesex==1
*% heritable

*WP ITEMS - High
polychoric pacif1 pacif2 if mz==1 & knowtop1==1 & knowtop2==1 & samesex==1
polychoric pacif1 pacif2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric global1 global2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric soc1 soc2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric porn1 porn2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric wlib1 wlib2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric sex1 sex2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric gay1 gay2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric welf1 welf2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric stem1 stem2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric abort1 abort2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric evol1 evol2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric foraid1 foraid2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric imm1 imm2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric warrant1 warrant2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric guns1 guns2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric patriot1 patriot2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric bible1 bible2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric tax1 tax2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric abst1 abst2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric torture1 torture2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric pray1 pray2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric pollute1 pollute2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric mil1 mil2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric iraq1 iraq2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1==1 & knowtop2==1 & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & knowtop1==1 & knowtop2==1 & samesex==1
*% heritable

*WP ITEMS - Mid
polychoric pacif1 pacif2 if mz==1 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric pacif1 pacif2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric global1 global2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric soc1 soc2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric porn1 porn2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric wlib1 wlib2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric sex1 sex2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric gay1 gay2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric welf1 welf2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric stem1 stem2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric abort1 abort2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric evol1 evol2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric foraid1 foraid2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric imm1 imm2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric warrant1 warrant2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric guns1 guns2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric patriot1 patriot2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric bible1 bible2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric tax1 tax2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric abst1 abst2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric torture1 torture2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric pray1 pray2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric pollute1 pollute2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric mil1 mil2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric iraq1 iraq2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & (knowtop1<1 | knowtop2<1) & (knowtop1==1 | knowtop2==1) & samesex==1
*% heritable

*WP ITEMS - Low
polychoric pacif1 pacif2 if mz==1 & knowtop1<1 & knowtop2<1 & samesex==1
polychoric pacif1 pacif2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric global1 global2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric soc1 soc2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric porn1 porn2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric wlib1 wlib2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric sex1 sex2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric gay1 gay2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric welf1 welf2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric stem1 stem2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric abort1 abort2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric evol1 evol2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric foraid1 foraid2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric imm1 imm2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric warrant1 warrant2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric guns1 guns2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric patriot1 patriot2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric bible1 bible2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric tax1 tax2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric abst1 abst2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric torture1 torture2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric pray1 pray2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric pollute1 pollute2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric mil1 mil2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric iraq1 iraq2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1<1 & knowtop2<1 & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & knowtop1<1 & knowtop2<1 & samesex==1
*% heritable


*WP ITEMS - 4 or 5 High
polychoric pacif1 pacif2 if mz==1 & know1_45==1 & know2_45==1 & samesex==1
polychoric pacif1 pacif2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric global1 global2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric soc1 soc2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric porn1 porn2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric wlib1 wlib2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric sex1 sex2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric gay1 gay2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric welf1 welf2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric stem1 stem2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric abort1 abort2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric evol1 evol2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric foraid1 foraid2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric imm1 imm2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric warrant1 warrant2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric guns1 guns2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric patriot1 patriot2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric bible1 bible2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric tax1 tax2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric abst1 abst2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric torture1 torture2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric pray1 pray2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric pollute1 pollute2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric mil1 mil2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric iraq1 iraq2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & know1_45==1 & know2_45==1 & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & know1_45==1 & know2_45==1 & samesex==1
*% heritable

*WP ITEMS 4 or 5 - Low
polychoric pacif1 pacif2 if mz==1 & (know1_45<1 | know2_45<1) & samesex==1
polychoric pacif1 pacif2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric global1 global2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric global1 global2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric soc1 soc2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric soc1 soc2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric porn1 porn2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric porn1 porn2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric wlib1 wlib2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric sex1 sex2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric sex1 sex2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric gay1 gay2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric gay1 gay2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric welf1 welf2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric welf1 welf2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric stem1 stem2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric stem1 stem2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric abort1 abort2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric abort1 abort2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric evol1 evol2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric evol1 evol2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric foraid1 foraid2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric imm1 imm2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric imm1 imm2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric warrant1 warrant2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric guns1 guns2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric guns1 guns2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric deathpen1 deathpen2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric patriot1 patriot2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric bible1 bible2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric bible1 bible2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1 & (know1_45<1 | know2_45<1) & samesex==1
polychoric schoolstand1 schoolstand2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric tax1 tax2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric tax1 tax2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric abst1 abst2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric abst1 abst2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric torture1 torture2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric torture1 torture2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric pray1 pray2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric pray1 pray2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric pollute1 pollute2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric mil1 mil2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric mil1 mil2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric iraq1 iraq2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & (know1_45<1 | know2_45<1) & samesex==1
polychoric smallgov1 smallgov2 if mz==0 & (know1_45<1 | know2_45<1) & samesex==1
*% heritable


***Table A6: BY SEX***
tab mz if wp1alpha~=. & knowtop1~=. & knowtop2~=. & fem1==1
tab mz if wp1alpha~=. & (knowtop1==1|knowtop2==1) & fem1==1
tab mz if wp1alpha~=. & knowtop1<1 & knowtop2<1 & fem1==1

tab mz if wp1alpha~=. & knowtop1~=. & knowtop2~=. & fem1==0
tab mz if wp1alpha~=. & (knowtop1==1|knowtop2==1) & fem1==0
tab mz if wp1alpha~=. & knowtop1<1 & knowtop2<1 & fem1==0


*FEMALE
*By Knowledge 
polychoric wp1alpha wp2alpha if mz~=. & knowtop1~=. & knowtop2~=. & fem1==1
*Among those with knowledge scores
polychoric wp1alpha wp2alpha if mz==1 & knowtop1~=. & knowtop2~=. & fem1==1
polychoric wp1alpha wp2alpha if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1

*High/Mid
polychoric wp1alpha wp2alpha if mz==1 & (knowtop1==1|knowtop2==1) & fem1==1
polychoric wp1alpha wp2alpha if mz==0 & (knowtop1==1|knowtop2==1) & fem1==1

*Both Not High 
polychoric wp1alpha wp2alpha if mz==1 & knowtop1<1 & knowtop2<1 & fem1==1
polychoric wp1alpha wp2alpha if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1


*By Knowledge 
polychoric iid1 iid2 if mz~=. & knowtop1~=. & knowtop2~=. & fem1==1
*Among those with knowledge scores
polychoric iid1 iid2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==1
polychoric iid1 iid2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1

*High/Mid
polychoric iid1 iid2 if mz==1 & (knowtop1==1|knowtop2==1) & fem1==1
polychoric iid1 iid2 if mz==0 & (knowtop1==1|knowtop2==1) & fem1==1

*Both Not High 
polychoric iid1 iid2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==1
polychoric iid1 iid2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1


*By Knowledge 
polychoric consist1 consist2 if mz~=. & knowtop1~=. & knowtop2~=. & fem1==1
*Among those with knowledge scores
polychoric consist1 consist2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==1
polychoric consist1 consist2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1

*High/Mid
polychoric consist1 consist2 if mz==1 & (knowtop1==1|knowtop2==1) & fem1==1
polychoric consist1 consist2 if mz==0 & (knowtop1==1|knowtop2==1) & fem1==1

*Both Not High 
polychoric consist1 consist2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==1
polychoric consist1 consist2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1


*WP ITEMS - ALL
polychoric pacif1 pacif2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==1
polychoric pacif1 pacif2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric global1 global2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric global1 global2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric soc1 soc2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric porn1 porn2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric wlib1 wlib2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric sex1 sex2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric gay1 gay2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric welf1 welf2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric stem1 stem2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric abort1 abort2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric evol1 evol2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric foraid1 foraid2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric imm1 imm2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric warrant1 warrant2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric guns1 guns2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric deathpen1 deathpen2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric patriot1 patriot2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric bible1 bible2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric tax1 tax2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric abst1 abst2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric torture1 torture2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric pray1 pray2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric pollute1 pollute2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric mil1 mil2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric iraq1 iraq2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==1
polychoric smallgov1 smallgov2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==1
*% heritable

*WP ITEMS - High/Mid
polychoric pacif1 pacif2 if mz==1 & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric pacif1 pacif2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric global1 global2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric global1 global2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric soc1 soc2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric soc1 soc2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric porn1 porn2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric porn1 porn2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric wlib1 wlib2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric sex1 sex2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric sex1 sex2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric gay1 gay2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric gay1 gay2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric welf1 welf2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric welf1 welf2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric stem1 stem2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric stem1 stem2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric abort1 abort2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric abort1 abort2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric evol1 evol2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric evol1 evol2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric foraid1 foraid2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric imm1 imm2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric imm1 imm2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric warrant1 warrant2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric guns1 guns2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric guns1 guns2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric deathpen1 deathpen2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric patriot1 patriot2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric bible1 bible2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric bible1 bible2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric schoolstand1 schoolstand2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric tax1 tax2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric tax1 tax2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric abst1 abst2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric abst1 abst2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric torture1 torture2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric torture1 torture2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric pray1 pray2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric pray1 pray2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric pollute1 pollute2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric mil1 mil2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric mil1 mil2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric iraq1 iraq2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==1
polychoric smallgov1 smallgov2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==1
*% heritable

*WP ITEMS - Low
polychoric pacif1 pacif2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==1
polychoric pacif1 pacif2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric global1 global2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric global1 global2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric soc1 soc2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric porn1 porn2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric wlib1 wlib2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric sex1 sex2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric gay1 gay2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric welf1 welf2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric stem1 stem2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric abort1 abort2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric evol1 evol2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric foraid1 foraid2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric imm1 imm2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric warrant1 warrant2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric guns1 guns2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric deathpen1 deathpen2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric patriot1 patriot2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric bible1 bible2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1<1 & knowtop2<1
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1<1 & knowtop2<1
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric tax1 tax2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric abst1 abst2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric torture1 torture2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric pray1 pray2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric pollute1 pollute2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric mil1 mil2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric iraq1 iraq2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==1
polychoric smallgov1 smallgov2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==1
*% heritable



*MALE

*By Knowledge 
polychoric wp1alpha wp2alpha if mz~=. & knowtop1~=. & knowtop2~=. & fem1==0
*Among those with knowledge scores
polychoric wp1alpha wp2alpha if mz==1 & knowtop1~=. & knowtop2~=. & fem1==0
polychoric wp1alpha wp2alpha if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0

* High/Mid
polychoric wp1alpha wp2alpha if mz==1 & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric wp1alpha wp2alpha if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0

*Both Not High 
polychoric wp1alpha wp2alpha if mz==1 & knowtop1<1 & knowtop2<1 & fem1==0
polychoric wp1alpha wp2alpha if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0


*By Knowledge 
polychoric iid1 iid2 if mz~=. & knowtop1~=. & knowtop2~=. & fem1==0
*Among those with knowledge scores
polychoric iid1 iid2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==0
polychoric iid1 iid2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0

* High/Mid
polychoric iid1 iid2 if mz==1 & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric iid1 iid2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0

*Both Not High (271 pairs - 47%)
polychoric iid1 iid2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==0
polychoric iid1 iid2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0


*By Knowledge 
polychoric consist1 consist2 if mz~=. & knowtop1~=. & knowtop2~=. & fem1==0
*Among those with knowledge scores
polychoric consist1 consist2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==0
polychoric consist1 consist2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0

* High/Mid
polychoric consist1 consist2 if mz==1 & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric consist1 consist2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0

*Both Not High 
polychoric consist1 consist2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==0
polychoric consist1 consist2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0


*WP ITEMS - ALL
polychoric pacif1 pacif2 if mz==1 & knowtop1~=. & knowtop2~=. & fem1==0
polychoric pacif1 pacif2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric global1 global2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric global1 global2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric soc1 soc2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric porn1 porn2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric wlib1 wlib2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric sex1 sex2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric gay1 gay2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric welf1 welf2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric stem1 stem2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric abort1 abort2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric evol1 evol2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric foraid1 foraid2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric imm1 imm2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric warrant1 warrant2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric guns1 guns2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric deathpen1 deathpen2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric patriot1 patriot2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric bible1 bible2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric tax1 tax2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric abst1 abst2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric torture1 torture2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric pray1 pray2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric pollute1 pollute2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric mil1 mil2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric iraq1 iraq2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1~=. & knowtop2~=. & fem1==0
polychoric smallgov1 smallgov2 if mz==0 & knowtop1~=. & knowtop2~=. & fem1==0
*% heritable

*WP ITEMS - High/Mid
polychoric pacif1 pacif2 if mz==1 & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric pacif1 pacif2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric global1 global2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric global1 global2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric soc1 soc2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric soc1 soc2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric porn1 porn2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric porn1 porn2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric wlib1 wlib2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric wlib1 wlib2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric sex1 sex2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric sex1 sex2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric gay1 gay2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric gay1 gay2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric welf1 welf2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric welf1 welf2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric stem1 stem2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric stem1 stem2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric abort1 abort2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric abort1 abort2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric evol1 evol2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric evol1 evol2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric foraid1 foraid2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric foraid1 foraid2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric imm1 imm2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric imm1 imm2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric warrant1 warrant2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric warrant1 warrant2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric guns1 guns2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric guns1 guns2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric deathpen1 deathpen2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric patriot1 patriot2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric patriot1 patriot2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric bible1 bible2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric bible1 bible2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric schoolstand1 schoolstand2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric tax1 tax2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric tax1 tax2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric abst1 abst2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric abst1 abst2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric torture1 torture2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric torture1 torture2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric pray1 pray2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric pray1 pray2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric pollute1 pollute2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric pollute1 pollute2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric mil1 mil2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric mil1 mil2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric iraq1 iraq2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric iraq1 iraq2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & (knowtop1==1 | knowtop2==1) & fem1==0
polychoric smallgov1 smallgov2 if mz==0 & (knowtop1==1 | knowtop2==1) & fem1==0
*% heritable

*WP ITEMS - Low
polychoric pacif1 pacif2 if mz==1 & knowtop1<1 & knowtop2<1 & fem1==0
polychoric pacif1 pacif2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric global1 global2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric global1 global2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric soc1 soc2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric soc1 soc2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric porn1 porn2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric porn1 porn2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric wlib1 wlib2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric wlib1 wlib2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric sex1 sex2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric sex1 sex2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric gay1 gay2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric gay1 gay2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric welf1 welf2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric welf1 welf2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric stem1 stem2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric stem1 stem2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric abort1 abort2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric abort1 abort2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric evol1 evol2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric evol1 evol2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric foraid1 foraid2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric foraid1 foraid2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric imm1 imm2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric imm1 imm2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric warrant1 warrant2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric warrant1 warrant2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric guns1 guns2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric guns1 guns2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric deathpen1 deathpen2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric deathpen1 deathpen2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric patriot1 patriot2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric patriot1 patriot2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric bible1 bible2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric bible1 bible2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric schoolstand1 schoolstand2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric schoolstand1 schoolstand2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric tax1 tax2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric tax1 tax2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric abst1 abst2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric abst1 abst2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric torture1 torture2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric torture1 torture2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric pray1 pray2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric pray1 pray2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric pollute1 pollute2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric pollute1 pollute2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric mil1 mil2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric mil1 mil2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric iraq1 iraq2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric iraq1 iraq2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
polychoric smallgov1 smallgov2 if mz==1  & knowtop1<1 & knowtop2<1 & fem1==0
polychoric smallgov1 smallgov2 if mz==0 & knowtop1<1 & knowtop2<1 & fem1==0
*% heritable
